package com.example.innospace.demos.web.reposity;


import com.example.innospace.demos.pojo.Request.ApprovalRequest;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

// 继承 JpaRepository 接口，用于对 ApprovalRequest 实体进行数据库操作
public interface ApprovalRequestRepository extends JpaRepository<ApprovalRequest, Long> {

    @Select("select * from approval_request where status=#{pneding}")
    List<ApprovalRequest> findByStatus(String pending);
}